package com.pzh.guli.service.edu.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.pzh.guli.service.edu.pojo.Course;
import com.baomidou.mybatisplus.extension.service.IService;
import com.pzh.guli.service.edu.pojo.vo.*;

import java.util.List;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author xzh
 * @since 2022-05-11
 */
public interface ICourseService extends IService<Course> {

    String saveCourse(CourseVo courseVo);

    CourseVo getCourseInfoById(String id);

    String updateCourse(CourseVo courseVo);

    Page<CourseDto> selectPage(Long page, Long limit, CourseQueryVo courseQueryVo);

    CoursePublishVo getPublishCourseById(String id);

    boolean updatePublish(String id);

    List<Course> getCourseByQuery(WebCourseQuery webCourseQuery);

    WebCourseVo getCoursePay(String id);

    List<Course> getTopCourse();

    com.pzh.guli.service.base.dto.CourseDto geCourseDtoById(String courseId);
}
